/* TAKE A DB OFFLINE */

USE [master]
GO

DECLARE @DBName AS VARCHAR(50)
SET @DBName = 'BETA_VALM001'

EXEC [sp_dboption] @DBName, 'offline', 'TRUE'
